<template>
	<view class="bill-content">
		<view class="bill-item" v-for="(item,index) in list" :key="index" @click="goItem(item)">
			<view>
				<view class="bill-item_title">{{item.title}}</view>
				<view class="bill-item_tips">
					{{item.time}}
					<text>{{item.states=="1"?"支付成功":""}}</text>
				</view>
			</view>
			<view class="bill-item_money">
				<view>￥{{item.money}}</view>
				<image src="../../static/imgs/mine/right.png"></image>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				list:[
					{
						title:"小学一年级课程",
						time:"2023.10.18 16:30",
						states:"1",
						money:"128",
					},{
						title:"小学一年级课程",
						time:"2023.10.18 16:30",
						states:"1",
						money:"128",
					}
				]
			}
		},
		methods:{
			goItem(item){
				uni.navigateTo({
					url:"/pages/mine/bill_details?details="+JSON.stringify(item)
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.bill-content{
		.bill-item{
			background-color: #fff;
			display: flex;
			width: calc(100% - 60rpx);
			padding: 30rpx 30rpx;
			align-items: center;
			justify-content: space-between;
			margin-bottom: 2rpx;
			&_title{
				font-size: 28rpx;
				font-weight: bold;
				color: $uni-text-color-black;
			}
			&_tips{
				line-height: 40rpx;
				font-size: 28rpx;
				margin-top: 10rpx;
				color: $uni-text-color-opblack;
				text{
					margin-left: 20rpx;
				}
			}
			&_money{
				font-size: 32rpx;
				color: $uni-text-color-black;
				display: flex;
				align-items: center;
				image{
					width: 32rpx;
					height: 32rpx;
					margin-left: 10rpx;
				}
			}
		}
	}
</style>